#ifndef __CBDGENERATOR_H__
#define __CBDGENERATOR_H__

#include "tinyxml/tinyxml.h"

#include <string>
#include <vector>

class CDBGenerator
{
public:
	static bool generate(const char* dir, const char* base_xml);

private:
	CDBGenerator();

	static int addSignaturesFromDirectory(const char* dir, TiXmlElement* root);
	static int addSignaturesFromFile(const char* filename, TiXmlElement* root);
	static void getNames(const TiXmlElement * first, std::vector<std::string>& names);
};

#endif // __CBDGENERATOR_H__